package cn.edu.guet.mapper.editor;

import cn.edu.guet.bean.editor.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface ComMapper {
    List<Comment> getFatherCom(int pid);
    void insertReply(Comment comment);
    void updateComUp(int comid);//点赞
    void deleteComUp(int comid);//取消点赞
    void alreadyComUp(int comid,int userid);//标记已被点赞
    void deleteComUpRecord(int comid,int userid);//删除已点赞标记
    String selectComUpRecord(int comid,int userid);//查询评论是否已点赞
}
